package com.dhsc.local.dao.impl.ywhc;

import com.dhsc.domain.jkzx.ywhc.HjfzmxVo;
import com.dhsc.domain.jkzx.ywhc.ShkhmxVo;
import com.dhsc.local.dao.ywhz.IShkhmxDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 收函客户明细
 * @date 2024/7/5 15:51
 */
@Repository("shkhmxDao")
public class ShkhmxDaoImpl implements IShkhmxDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;
    @Override
    public List<ShkhmxVo> queryShkhmxInfo(ShkhmxVo s) {
        return localSqlSessionTemplate.selectList("ShkhmxMapper.queryShkhmxInfo",s);
    }

    @Override
    public List<ShkhmxVo> queryZdjkzhmxInfo(ShkhmxVo s) {
        return localSqlSessionTemplate.selectList("ShkhmxMapper.queryZdjkzhmxInfo",s);
    }

    @Override
    public List<ShkhmxVo> queryYcjyzhxzcxInfo(ShkhmxVo s) {
        return localSqlSessionTemplate.selectList("ShkhmxMapper.queryYcjyzhxzcxInfo",s);
    }

    @Override
    public int saveXzcsxx(ShkhmxVo s) {
        return localSqlSessionTemplate.insert("ShkhmxMapper.saveXzcsxx",s);
    }

    @Override
    public int updateXzcsxx(ShkhmxVo s) {
        return localSqlSessionTemplate.update("ShkhmxMapper.updateXzcsxx",s);
    }

    @Override
    public int updateXzcsbz(ShkhmxVo s) {
        return localSqlSessionTemplate.update("ShkhmxMapper.updateXzcsbz",s);
    }

    @Override
    public int updateZdzhbz(ShkhmxVo s) {
        return localSqlSessionTemplate.update("ShkhmxMapper.updateZdzhbz",s);
    }

    @Override
    public List<HjfzmxVo> queryHjfxmxcx(HjfzmxVo h) {
        return localSqlSessionTemplate.selectList("ShkhmxMapper.queryHjfxmxcx",h);
    }

    @Override
    public int saveHjfxmx(HjfzmxVo h) {
        return localSqlSessionTemplate.insert("ShkhmxMapper.saveHjfxmx",h);
    }

    @Override
    public int updateHjfxmx(HjfzmxVo h) {
        return localSqlSessionTemplate.update("ShkhmxMapper.updateHjfxmx",h);
    }

    @Override
    public int deleteHjfxmxcx(HjfzmxVo h) {
        return localSqlSessionTemplate.update("ShkhmxMapper.deleteHjfxmxcx",h);
    }
}
